package triangle;
import java.util.Scanner;
public class Rectangle {
    double x,y,z;
    public double getX(){
        return x;
    }
    public void setX(double x){
    this.x=x;
    }
    public double getY(){
        return y;
    }
    public  void setY(double y){
        this.y=y;
    }
    public double getZ(){
        return  z;
    }
    public void setZ(double z){
        this.z=z;
    }
    public double getArea(){
        double s=(x+y+z)/2;
        double area=Math.pow(s*((s-x)*(s-y)*(s-z)),0.5);
        return area;
    }
    public double getPerimeter(){
        double perimeter=x+y+z;
        return perimeter;
    }
    public Rectangle(double x,double y,double z){
        this.x=x;
        this.y=y;
        this.z=z;
    }


    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        double x=sc.nextDouble();
        double y=sc.nextDouble();
        double z= sc.nextDouble();
        sc.close();
        Rectangle r1=new Rectangle(x,y,z);
        System.out.println("r1面积是："+r1.getArea());
        System.out.println("r2周长是："+r1.getPerimeter());
    }
            }
